#include<bits/stdc++.h>

using namespace std;

int Strlen(char *s) {
    char *p = s;
    while (*p != '\0')p++;
    return p - s;
}

int main() {
    char s[100] = "ABA";

    cout << Strlen(s) << endl;
    return 0;
}
